<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String userAccount = (String) request.getParameter("userAccount");
	String userPassword = (String) request.getParameter("userPassword");
	boolean validated = false;
	if (userAccount != null || userAccount.trim().length() > 0) {
		if (userAccount.equals("zhangsan")
				&& userPassword.equals("123")) {
			validated = true;

		}
	}
	if (validated) {
		//验证成功跳转到welcome.jsp
%>
<jsp:forward page="welcome.jsp" />
<%
	} else {
		//验证失败跳转到error.jsp
%>
<jsp:forward page="error.jsp" />
<%
	}
%>
